package lib.Base;

import java.io.Serializable;
import java.util.ArrayList;

public class Profile implements Serializable {
	/**
	 * Class to store a user profile
	 */
	private static final long serialVersionUID = 1L;

	private String UserId = "";
	private String PictureId = "";
	private String Username = "";
	private long LastChange = 0;

	private Info info = null;

	ArrayList<Message> Guestbook = new ArrayList<Message>();
	ArrayList<Post> Posts = new ArrayList<Post>();

	public Profile() {

	}

	public String getUserId() {
		return UserId;
	}

	public void setUserId(String UserId) {
		this.UserId = UserId;
	}

	public String getPictureId() {
		return PictureId;
	}

	public void setUsername(String Username) {
		this.Username = Username;
	}

	public String getUsername() {
		return Username;
	}

	public void setPictureId(String PictureId) {
		this.PictureId = PictureId;
	}

	public long getLastChange() {
		return LastChange;
	}

	public void setLastChange(long LastChange) {
		this.LastChange = LastChange;
	}

	public void setInfo(Info info) {
		this.info = info;
	}

	public Info getInfo() {
		return info;
	}

	public void addPost(Post post) {
		Posts.add(post);
	}

	public void sortPosts() {

	}

	public ArrayList<Post> getPosts() {
		return Posts;
	}

	public void addGuestbookMessage(Message message) {
		Guestbook.add(message);
	}

	public void sortGuestbook() {

	}

	public ArrayList<Message> getGuestbook() {
		return Guestbook;
	}
}